package com.zhang.buiness.amaster.configenv.server.web;

import com.zhang.buiness.amaster.configenv.server.service.EnvServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/env")
public class EnvWebController {

    @Autowired
    private EnvServiceImpl envService;


    @RequestMapping("/get/env/all/v1")
    private List<String> getEnvConfig(){
      return  envService.getEnvConfig();

    }
}
